<html>
<body>
Reports JUnit annotated methods when used in a test case from a different JUnit version. To determine the framework version for a test case
the inspection checks the framework version of the super class when available. When a super class is not available it will use the most used
framework in the test case.
<p>Example (JUnit 4 annotation in JUnit 3 test case):</p>
<pre><code lang="java">
  public class MyTest extends TestCase {
      @Test
      public void foo() { }

      @Test
      @Ignore
      public void testBar() { }
  }
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code lang="java">
  public class MyTest extends TestCase {
      public void testFoo() {}

      public void _testBar() {}
  }
</code></pre>

<p>Example (JUnit 5 annotation in JUnit 4 test case):</p>
<pre><code lang="java">
  public class MyTest {
      @BeforeAll // JUnit 5 lifecycle method
      public void initialize() { }

      @org.junit.Test  // JUnit 4 test annotation
      public void test() {}

      @org.junit.Test  // JUnit 4 test annotation
      public void testWouldBeExecuted() {}
  }
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code lang="java">
  public class MyTest {
      @BeforeClass // JUnit 4 lifecycle method
      public void initialize() { }

      @org.junit.Test  // JUnit 4 test annotation
      public void test() {}

      @org.junit.Test  // JUnit 4 test annotation
      public void testWouldBeExecuted() {}
  }
</code></pre>
<!-- tooltip end -->
</body>
</html>